#ifndef _NET_MESSAGE_
#define _NET_MESSAGE_

#include "raknet\BitStream.h"
#include "raknet\MessageIdentifiers.h"

using namespace RakNet;

namespace air {

	enum AirMessageID
	{
		CLIENT_READY = ID_USER_PACKET_ENUM,
		READY_ACK
	};
	/**
	 * @brief the class to be transported on network
	 */
	struct NetMessage
	{
		virtual ~NetMessage() {}
		virtual void Serialization(BitStream* bso) {	bso = 0;	};
		virtual void UnSerialization(NetMessage* nMsg) {};
	};

	struct ReadyAck: public NetMessage
	{
		void Serialization(BitStream* bso) { bso->Write((unsigned __int8)READY_ACK); 	}
	};
}
#endif